package com.tms.springboot.service.impl;

import com.github.pagehelper.PageHelper;
import com.tms.springboot.aggregation.pojo.PdOrder;
import com.tms.springboot.aggregation.pojo.PdTransportOrder;
import com.tms.springboot.mapper.PdTransportOrderMapper;
import com.tms.springboot.service.PdTransportOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tms.springboot.view.PageVo;
import com.tms.springboot.vo.PdTransportOrderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 运单表 服务实现类
 * </p>
 *
 * @author cjj
 * @since 2023-06-14
 */
@Service
public class PdTransportOrderServiceImpl extends ServiceImpl<PdTransportOrderMapper, PdTransportOrder> implements PdTransportOrderService {


    @Autowired
    private PdTransportOrderMapper mapper;

    @Override
    public List<PdTransportOrderVo> getQueryPdTransportOrderPage(PageVo<PdOrder> queryPdOrder) {

        PageHelper.startPage(queryPdOrder.getCurrentPage(),queryPdOrder.getPageSize());

        return this.mapper.getQueryPdTransportOrder(queryPdOrder.getCondition());
    }
}
